package br.com.massai.model.entity.file;

import java.io.Serializable;

import javax.persistence.Id;

public class FunctionEmployee implements Serializable {

	private static final long serialVersionUID = 2610301897944116742L;
	
	@Id
	private String code;
	private String description;
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null) return false;
		if(obj instanceof FunctionEmployee)
			if(((FunctionEmployee)obj).getCode().equals(this.code)) return true;
		return false;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
}